<template>
  <div>
    <index ref="indexRef" :preview="true" />
  </div>
</template>

<script setup lang="ts">
import index from '@/pages/index.vue'
import { onLoad, onPullDownRefresh } from '@dcloudio/uni-app';
const indexRef = ref<any>('')
onPullDownRefresh(() => {

  indexRef.value?.init()
  setTimeout(() => {
    uni.stopPullDownRefresh();
  }, 1000);
});
</script>

<style scoped></style>
